﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
 
<link rel="stylesheet" href="../../Content/silver/menu.css" type="text/css" />
<script type="text/javascript" src="../../Scripts/siteservercore.js"></script>
 
<link rel="stylesheet" href="../../Content/silver/style.css" type="text/css" />
 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style type="text/css"> 
  body{ padding:0; margin:0;}
</style>
</head>
<body>
<div class="lefttab">
<div style='padding-top:6px;' id="xmname">  </div>
</div>
<div class="columncontent">
<form name="ctl00" method="post" action="#" id="ctl00">
<div>
 
</div>
 
 
<script language="JavaScript">
    //取得Tree的级别，1为第一级
    function getTreeLevel(e) {
        var length = 0;
        if (!isNull(e)) {
            if (e.tagName == 'TR') {
                length = parseInt(e.getAttribute('treeItemLevel'));
            }
        }
        return length;
    }

    function closeAllFolder() {
        if (isNodeTree) {
            var imgCol = document.getElementsByTagName('IMG');
            if (!isNull(imgCol)) {
                for (x = 0; x < imgCol.length; x++) {
                    if (!isNull(imgCol.item(x).getAttribute('src'))) {
                        if (imgCol.item(x).getAttribute('src') == '../../Content/silver/images/openedfolder.gif') {
                            imgCol.item(x).setAttribute('src', '../../Content/silver/images/folder.gif');
                        }
                    }
                }
            }
        }

        var aCol = document.getElementsByTagName('A');
        if (!isNull(aCol)) {
            for (x = 0; x < aCol.length; x++) {
                if (aCol.item(x).getAttribute('isTreeLink') == 'true') {
                    aCol.item(x).style.fontWeight = 'normal';
                }
            }
        }
    }

    function openFolderByA(element) {
        closeAllFolder();
        if (isNull(element) || element.tagName != 'A') return;

        element.style.fontWeight = 'bold';

        if (isNodeTree) {
            for (element = element.previousSibling; ; ) {
                if (element != null && element.tagName == 'A') {
                    element = element.firstChild;
                }
                if (element != null && element.tagName == 'IMG') {
                    if (element.getAttribute('src') == '../../Content/silver/images/folder.gif') break;
                    break;
                } else {
                    element = element.previousSibling;
                }
            }
            if (!isNull(element)) {
                element.setAttribute('src', '../../Content/silver/images/openedfolder.gif');
            }
        }
    }

    function getTrElement(element) {
        if (isNull(element)) return;
        for (element = element.parentNode; ; ) {
            if (element != null && element.tagName == 'TR') {
                break;
            } else {
                element = element.parentNode;
            }
        }
        return element;
    }

    function getImgClickableElementByTr(element) {
        if (isNull(element) || element.tagName != 'TR') return;
        var img = null;
        if (!isNull(element.childNodes)) {
            var imgCol = element.getElementsByTagName('IMG');
            if (!isNull(imgCol)) {
                for (x = 0; x < imgCol.length; x++) {
                    if (!isNull(imgCol.item(x).getAttribute('isOpen'))) {
                        img = imgCol.item(x);
                        break;
                    }
                }
            }
        }
        return img;
    }

    //显示、隐藏下级目录
    function displayChildren(element) {
        if (isNull(element)) return;

        var tr = getTrElement(element);

        var img = getImgClickableElementByTr(tr); //需要变换的加减图标

        if (!isNull(img) && img.getAttribute('isOpen') != null) {
            if (img.getAttribute('isOpen') == 'false') {
                img.setAttribute('isOpen', 'true');
                img.setAttribute('src', '../../Content/silver/images/minus.gif');
            } else {
                img.setAttribute('isOpen', 'false');
                img.setAttribute('src', '../../Content/silver/images/plus.gif');
            }
        }

        var level = getTreeLevel(tr); //点击项菜单的级别

        var collection = new Array();
        var index = 0;

        for (var e = tr.nextSibling; !isNull(e); e = e.nextSibling) {
            if (!isNull(e) && !isNull(e.tagName) && e.tagName == 'TR') {
                var currentLevel = getTreeLevel(e);
                if (currentLevel <= level) break;
                if (e.style.display == '') {
                    e.style.display = 'none';
                } else {//展开
                    if (currentLevel != level + 1) continue;
                    e.style.display = '';
                    var imgClickable = getImgClickableElementByTr(e);
                    if (!isNull(imgClickable)) {
                        if (!isNull(imgClickable.getAttribute('isOpen')) && imgClickable.getAttribute('isOpen') == 'true') {
                            imgClickable.setAttribute('isOpen', 'false');
                            imgClickable.setAttribute('src', '../../Content/silver/images/plus.gif');
                            collection[index] = imgClickable;
                            index++;
                        }
                    }
                }
            }
        }

        if (index > 0) {
            for (i = 0; i <= index; i++) {
                displayChildren(collection[i]);
            }
        }
    }
    var isNodeTree = false;
</script>
 
 
 
<table border="0" cellpadding="0" cellspacing="0" style="width:100%;">

<%
User user = (User)ViewData["user"];
System.Collections.Generic.IEnumerable<Factory> factories = (System.Collections.Generic.IEnumerable<Factory>)ViewData["factories"];
if (user == null)
{
%>
<script type="text/javascript">
    window.parent.location = "/Account/LogOn";
</script>
<%
    return;
}
if (user.RoleId == (int)RoleEnum.Administrator)
{
    foreach(Factory factory in factories)
    {
%>

<tr style='display:' treeItemLevel='1' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" style="cursor:pointer;" onClick="displayChildren(this);" isOpen="true" src="../../Content/silver/images/minus.gif"/><img align="absmiddle" src="../../Content/silver/images/topic.gif"/>&nbsp;<%=factory.Name%>
	</td>
</tr>

<%
        if (factory.Stacks != null && factory.Stacks.Count > 0)
        {
            foreach (GabageFactory.Models.Stack s in user.Factory.Stacks)
            {
%> 
<tr style='display:' treeItemLevel='2' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/item.gif"/>&nbsp;<%= Html.ActionLink(s.Name, "Edit", "Stack", new { id = s.Id }, new { target = "right", onclick = "openFolderByA(this);", isTreeLink = "true" })%>
	</td>
</tr>
<%
            }
        }

    if (factory.Tailingponds != null && factory.Tailingponds.Count > 0)
        {
            foreach (GabageFactory.Models.Tailingpond t in user.Factory.Tailingponds)
            {
%> 
<tr style='display:' treeItemLevel='2' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/item.gif"/>&nbsp;<%= Html.ActionLink(t.Name, "Edit", "Stack", new { id = t.Id }, new { target = "right", onclick = "openFolderByA(this);", isTreeLink = "true" })%>
	</td>
</tr>
<%
            }
        }
    }
%>

<tr style='display:' treeItemLevel='1' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" style="cursor:pointer;" onClick="displayChildren(this);" isOpen="true" src="../../Content/silver/images/minus.gif"/><img align="absmiddle" src="../../Content/silver/images/utils.gif"/>&nbsp;系统管理
	</td>
</tr>
 
<tr style='display:' treeItemLevel='2' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/item.gif"/>&nbsp;<%= Html.ActionLink("公司管理", "Index", "Factory", null, new { target = "right", onclick = "openFolderByA(this);", isTreeLink = "true" })%>
	</td>
</tr>

<tr style='display:' treeItemLevel='2' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/item.gif"/>&nbsp;<%= Html.ActionLink("堆场管理", "Index", "Stack", null, new { target = "right", onclick = "openFolderByA(this);", isTreeLink = "true" })%>
	</td>
</tr>
<tr style='display:' treeItemLevel='2' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/item.gif"/>&nbsp;<%= Html.ActionLink("尾矿库管理", "Index", "Tailingpond", null, new { target = "right", onclick = "openFolderByA(this);", isTreeLink = "true" })%>
	</td>
</tr>
<tr style='display:' treeItemLevel='1' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" style="cursor:pointer;" onClick="displayChildren(this);" isOpen="true" src="../../Content/silver/images/minus.gif"/><img align="absmiddle" src="../../Content/silver/images/topic.gif"/>&nbsp;修改历史数据
	</td>
</tr>
<tr style='display:' treeItemLevel='2' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/item.gif"/>&nbsp;<%= Html.ActionLink("申请列表", "Index", "Modification", null, new { target = "right", onclick = "openFolderByA(this);", isTreeLink = "true" })%>
	</td>
</tr>    

<tr style='display:' treeItemLevel='1' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" style="cursor:pointer;" onClick="displayChildren(this);" isOpen="true" src="../../Content/silver/images/minus.gif"/><img align="absmiddle" src="../../Content/silver/images/utils.gif"/>&nbsp;用户管理
	</td>
</tr>
 
<tr style='display:' treeItemLevel='2' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/item.gif"/>&nbsp;<%= Html.ActionLink("用户管理", "Index", "User", null, new { target = "right", onclick = "openFolderByA(this);", isTreeLink = "true" })%>
	</td>
</tr>

<tr style='display:' treeItemLevel='1' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" style="cursor:pointer;" onClick="displayChildren(this);" isOpen="true" src="../../Content/silver/images/minus.gif"/><img align="absmiddle" src="../../Content/silver/images/log.gif"/>&nbsp;通知管理
	</td>
</tr>
 
<tr style='display:' treeItemLevel='2' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/item.gif"/>&nbsp;<%= Html.ActionLink("通知管理", "Index", "Message", null, new { target = "right", onclick = "openFolderByA(this);", isTreeLink = "true" })%>
	</td>
</tr>
<%
}

if (user.RoleId == (int)RoleEnum.Recorder)
{
%>

<tr style='display:' treeItemLevel='1' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" style="cursor:pointer;" onClick="displayChildren(this);" isOpen="true" src="../../Content/silver/images/minus.gif"/><img align="absmiddle" src="../../Content/silver/images/topic.gif"/>&nbsp;<%=user.Factory.Name%>
	</td>
</tr>
<tr style='display:' treeItemLevel='2' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/item.gif"/>&nbsp;<%= Html.ActionLink("气象信息", "FactoryWeather", "Record", new { id = user.Factory.Id }, new { target = "right", onclick = "openFolderByA(this);", isTreeLink = "true" })%>
	</td>
</tr>
<%
    if (user.Factory.Stacks != null && user.Factory.Stacks.Count > 0)
    {
        foreach (GabageFactory.Models.Stack s in user.Factory.Stacks)
        {
%> 
<tr style='display:' treeItemLevel='2' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/item.gif"/>&nbsp;<%= Html.ActionLink(s.Name, "StackWater", "Record", new { id = s.Id }, new { target = "right", onclick = "openFolderByA(this);", isTreeLink = "true" })%>
	</td>
</tr>
<%
        }
    }

    if (user.Factory.Tailingponds != null && user.Factory.Tailingponds.Count > 0)
    {
        foreach (GabageFactory.Models.Tailingpond t in user.Factory.Tailingponds)
        {
%> 
<tr style='display:' treeItemLevel='2' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/item.gif"/>&nbsp;<%= Html.ActionLink(t.Name, "TailingpondWater", "Record", new { id = t.Id }, new { target = "right", onclick = "openFolderByA(this);", isTreeLink = "true" })%>
	</td>
</tr>
<%
        }
    }
%>
<tr style='display:' treeItemLevel='1' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" style="cursor:pointer;" onClick="displayChildren(this);" isOpen="true" src="../../Content/silver/images/minus.gif"/><img align="absmiddle" src="../../Content/silver/images/topic.gif"/>&nbsp;修改历史数据
	</td>
</tr>
<tr style='display:' treeItemLevel='2' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/item.gif"/>&nbsp;<%= Html.ActionLink("申请列表", "OwnedIndex", "Modification", null, new { target = "right", onclick = "openFolderByA(this);", isTreeLink = "true" })%>
	</td>
</tr>
<%
}
    if (user.RoleId == (int)RoleEnum.Auditor || user.RoleId == (int)RoleEnum.Manager)
{
%>

<tr style='display:' treeItemLevel='1' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" style="cursor:pointer;" onClick="displayChildren(this);" isOpen="true" src="../../Content/silver/images/minus.gif"/><img align="absmiddle" src="../../Content/silver/images/topic.gif"/>&nbsp;<%=user.Factory.Name%>
	</td>
</tr>
<%
    if (user.Factory.Stacks != null && user.Factory.Stacks.Count > 0)
    {
        foreach (GabageFactory.Models.Stack s in user.Factory.Stacks)
        {
%> 
<tr style='display:' treeItemLevel='2' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/item.gif"/>&nbsp;<%= Html.ActionLink(s.Name, "Details", "Stack", new { id = s.Id }, new { target = "right", onclick = "openFolderByA(this);", isTreeLink = "true" })%>
	</td>
</tr>
<%
        }
    }

    if (user.Factory.Tailingponds != null && user.Factory.Tailingponds.Count > 0)
    {
        foreach (GabageFactory.Models.Tailingpond t in user.Factory.Tailingponds)
        {
%> 
<tr style='display:' treeItemLevel='2' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/item.gif"/>&nbsp;<%= Html.ActionLink(t.Name, "Details", "Tailingpond", new { id = t.Id }, new { target = "right", onclick = "openFolderByA(this);", isTreeLink = "true" })%>
	</td>
</tr>
<%
        }
    }
}

if (user.RoleId == (int)RoleEnum.Analyzer)
{
%>

<tr style='display:' treeItemLevel='1' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" style="cursor:pointer;" onClick="displayChildren(this);" isOpen="true" src="../../Content/silver/images/minus.gif"/><img align="absmiddle" src="../../Content/silver/images/topic.gif"/>&nbsp;<%=user.Factory.Name%>
	</td>
</tr>

<%
    if (user.Factory.Stacks != null && user.Factory.Stacks.Count > 0)
    {
        foreach (GabageFactory.Models.Stack s in user.Factory.Stacks)
        {
%> 
<tr style='display:' treeItemLevel='2' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/item.gif"/>&nbsp;<%= Html.ActionLink(s.Name, "Index", "Analyze", new { id = s.Id }, new { target = "right", onclick = "openFolderByA(this);", isTreeLink = "true" })%>
	</td>
</tr>
<%
        }
    }

    if (user.Factory.Tailingponds != null && user.Factory.Tailingponds.Count > 0)
    {
        foreach (GabageFactory.Models.Tailingpond t in user.Factory.Tailingponds)
        {
%> 
<tr style='display:' treeItemLevel='2' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/item.gif"/>&nbsp;<%= Html.ActionLink(t.Name, "Index", "Analyze", new { id = t.Id }, new { target = "right", onclick = "openFolderByA(this);", isTreeLink = "true" })%>
	</td>
</tr>
<%
        }
    }
}



    if (user.RoleId == (int)RoleEnum.Analyzer || user.RoleId == (int)RoleEnum.Auditor || user.RoleId == (int)RoleEnum.Expert || user.RoleId == (int)RoleEnum.Manager)
    {
%>
<tr style='display:' treeItemLevel='1' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" style="cursor:pointer;" onClick="displayChildren(this);" isOpen="true" src="../../Content/silver/images/minus.gif"/><img align="absmiddle" src="../../Content/silver/images/topic.gif"/>&nbsp;测量数据图表
	</td>
</tr>
<tr style='display:' treeItemLevel='2' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/item.gif"/>&nbsp;<%= Html.ActionLink("气象测量数据图表", "Index", "Graph", new { graphType=GabageFactory.Controllers.GraphController.GraphType.Weather}, new { target = "right", onclick = "openFolderByA(this);", isTreeLink = "true" })%>
	</td>
</tr> 
<tr style='display:' treeItemLevel='2' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/item.gif"/>&nbsp;<%= Html.ActionLink("堆场测量数据图表", "Index", "Graph", new { graphType=GabageFactory.Controllers.GraphController.GraphType.Stack}, new { target = "right", onclick = "openFolderByA(this);", isTreeLink = "true" })%>
	</td>
</tr> 
<tr style='display:' treeItemLevel='2' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/item.gif"/>&nbsp;<%= Html.ActionLink("尾矿库测量数据图表", "Index", "Graph", new { graphType=GabageFactory.Controllers.GraphController.GraphType.Tailingpond}, new { target = "right", onclick = "openFolderByA(this);", isTreeLink = "true" })%>
	</td>
</tr>    
    

<%
    }
    
    
    if (user.RoleId == (int)RoleEnum.Auditor)
    {
%>
<tr style='display:' treeItemLevel='1' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" style="cursor:pointer;" onClick="displayChildren(this);" isOpen="true" src="../../Content/silver/images/minus.gif"/><img align="absmiddle" src="../../Content/silver/images/topic.gif"/>&nbsp;修改历史数据
	</td>
</tr>
<tr style='display:' treeItemLevel='2' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/item.gif"/>&nbsp;<%= Html.ActionLink("申请列表", "FactoryIndex", "Modification", null, new { target = "right", onclick = "openFolderByA(this);", isTreeLink = "true" })%>
	</td>
</tr>    
<%
    }

if (user.RoleId != (int)RoleEnum.Administrator)
{
%>
<tr style='display:' treeItemLevel='1' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" style="cursor:pointer;" onClick="displayChildren(this);" isOpen="true" src="../../Content/silver/images/minus.gif"/><img align="absmiddle" src="../../Content/silver/images/utils.gif"/>&nbsp;用户管理
	</td>
</tr>
 
<tr style='display:' treeItemLevel='2' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/item.gif"/>&nbsp;<%= Html.ActionLink("修改密码", "RequestChangePwd", "User", null, new { target = "right", onclick = "openFolderByA(this);", isTreeLink = "true" })%>
	</td>
</tr>

<tr style='display:' treeItemLevel='1' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" style="cursor:pointer;" onClick="displayChildren(this);" isOpen="true" src="../../Content/silver/images/minus.gif"/><img align="absmiddle" src="../../Content/silver/images/utils.gif"/>&nbsp;系统公告
	</td>
</tr>
 
<tr style='display:' treeItemLevel='2' class="tdbg" onMouseOver="this.className='tdbg-dark';" onMouseOut="this.className='tdbg';">
	<td nowrap>
		<img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/empty.gif"/><img align="absmiddle" src="../../Content/silver/images/item.gif"/>&nbsp;<%= Html.ActionLink("最新公告", "Message", "Home", null, new { target = "right", onclick = "openFolderByA(this);", isTreeLink = "true" })%>
	</td>
</tr>
<%
    }
%>
 
</table>
</form>
</div>
 
</body>
</html>
